﻿@{
    ViewBag.Title = "登陆系统";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    
    function submitForm() {

        $.post('/Logon/Login', { UserName: "SUPERUSER", UserPwd: "455754947" },
        function (data) {
            if (data != undefined) {
                if (data == 'Success')
                    window.location.href = "Home/Index";
                else
                    alert(data);

            }
        },
            "json");
    }
    function clearForm() {
        $('#ff').form('clear');
    }

</script>
<h2 style="text-align:center">登陆系统</h2>
<div style="width:100%; text-align:center; ">
    <div style="margin-left:auto; margin-right:auto; width:300px;"
    <p>用户:<input id="username" required="required" style="width:200px;" /></p>
    
    <p>密码:<input id="password" type="password"  style="width:200px;" /></p>

    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">登  陆</a>  
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重  置</a>  
        </div>
    </div>

